package com.aaa.project.controller;


import com.aaa.project.service.IGUnitService;
import com.aaa.util.Result;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 商品计量单位 前端控制器
 * </p>
 *
 * @author zhangxuhui
 * @since 2023-02-19
 */
@RestController
@RequestMapping("/g-unit")
public class GUnitController {

    @Resource
    private IGUnitService igUnitService;

    @PostMapping("getAllUnit")
    public Result getAllunit(){
        return new Result(igUnitService.list());
    }


}

